package cn.com.duiba.millionaire.center.biz.bo;

import java.io.Serializable;

/**
 * Created by sty on 2/5/18.
 */
public class UserReLiveCardParam implements Serializable,Comparable {
    private static final long serialVersionUID = 5250772692172971448L;

    private Long consumerId;

    private Integer changeNum;

    public Long getConsumerId() {
        return consumerId;
    }

    public void setConsumerId(Long consumerId) {
        this.consumerId = consumerId;
    }


    public Integer getChangeNum() {
        return changeNum;
    }

    public void setChangeNum(Integer changeNum) {
        this.changeNum = changeNum;
    }

    @Override
    public int compareTo(Object o) {
        if(!(o instanceof UserReLiveCardParam)){
            return 0;
        }
        UserReLiveCardParam param = (UserReLiveCardParam)o;
        if(param.getConsumerId() > consumerId){
            return 1;
        }else {
            return -1;
        }
    }
}
